if(TARGET_LIKE_LINUX)
include("../includes.txt")
add_executable(m2mbase 
       "../../../../source/m2mbase.cpp"
        "main.cpp"
    "../stub/m2mreporthandler_stub.cpp"
    "../stub/nsdlaccesshelper_stub.cpp"
    "../stub/m2mresource_stub.cpp"
    "../stub/m2mresourcebase_stub.cpp"
    "../stub/m2mresourceinstance_stub.cpp"
    "../stub/m2mstring_stub.cpp"
    "../stub/m2mtimer_stub.cpp"
    "../stub/m2mobject_stub.cpp"
    "../stub/m2mobjectinstance_stub.cpp"
    "../stub/m2mresource_stub.cpp"
    "../stub/mbed_trace_stub.cpp"
    "m2mbasetest.cpp"
    "test_m2mbase.cpp"
    "../../../../source/m2mstringbufferbase.cpp"
    "../../../../source/m2mcallbackstorage.cpp"
)
target_link_libraries(m2mbase
    CppUTest
    CppUTestExt
)
set_target_properties(m2mbase
PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS}"
           LINK_FLAGS "${UTEST_LINK_FLAGS}")
set(binary "m2mbase")
add_test(m2mbase ${binary})


endif()
